import { http } from '@/utils/http/axios';


export function getCorInfo() {
  return http.request({
    url: '/flightInfo/getCor',
    method: 'GET',
  },
    {
      isTransformResponse: false,
    });
}

export function getPlaneInfo() {
  return http.request({
    url: '/flightInfo/getPlanes',
    method: 'GET',
  },
    {
      isTransformResponse: false,
    });
}

export function getBasicInfo(params, page, pageSize) {
  return http.request({
    url: `/flightInfo/basicInfo?page=${page}&pageSize=${pageSize}`,
    method: 'POST',
    params
  },
    {
      isTransformResponse: false,
    });
}

export function getDetailsInfo(params) {//航班详情接口
  return http.request({
    url: `/flightInfo/moreInfo?fide=${params}`,//接口
    method: 'GET'
    // params
  },
    {
      isTransformResponse: false,
    });
}

export function getBaggage(params) {//查询行李接口
  return http.request({
    url: `/flightInfo/getBaggageInfo?fide=${params}`,//接口
    method: 'GET'
    // params
  },
    {
      isTransformResponse: false,
    });
  }

  
export function getFide() {//查询每天的进出港数
  return http.request({
    url: '/flightInfo/getInOrOutNumber',
    method: 'GET',
  },
    {
      isTransformResponse: false,
    });}

    export function getChinaMap(timestamp, op) {
      return http.request({
        url: '/flightInfo/getChina',
        method: 'GET',
        params: {
          timestamp: timestamp,
          op: op,
        },
        isTransformResponse: false, // 将 isTransformResponse 移动到这里
      });
    }
    
    


export function getFlightCheck(params) {//查询行李接口
  return http.request({
    url: `/flightInfo/flightCheck?fide=${params}`,//接口
    method: 'GET'
    // params
  },
    {
      isTransformResponse: false,
    });
}

export function getAllApply(params) {
  return http.request({
    url: '/wxx/getInfo',
    method: 'GET',
    params
  },
    {
      isTransformResponse: false,
    });}

    
export function handleApply(params) {
  return http.request({
    url: `/wxx/handleApply`,
    method: 'POST',
    params
  },
    {
      isTransformResponse: false,
    });
}

export function getBaseApue(params) {//查询apue接口
  return http.request({
    url: `/flightInfo/baseApue`,//接口
    method: 'GET',
    params
  },
    {
      isTransformResponse: false,
    });
}

export function getDfmeArre(params) {//查询apue接口
  return http.request({
    url: `/flightInfo/dfmeArre`,//接口
    method: 'GET',
    params
  },
    {
      isTransformResponse: false,
    });
}

export function getDfmeCfce(params) {//查询apue接口
  return http.request({
    url: `/flightInfo/dfmeCfce`,//接口
    method: 'GET',
    params
  },
    {
      isTransformResponse: false,
    });
}
export function getDfltDlye(params) {
  //查询航班异常状态接口
  return http.request(
    {
      url: `/flightInfo/dlyeInfo`, //接口,url要改
      method: 'GET',
      params,
    },
    {
      isTransformResponse: false,
    }
  );
}
export function getDfltGtls(params) {
  //查询登机门信息
  return http.request(
    {
      url: `/flightInfo/gtlsInfo`, //接口,url要改
      method: 'GET',
      params,
    },
    {
      isTransformResponse: false,
    }
  );
}
export function getDfltOnre(params) {
  //查询登机门信息
  return http.request(
    {
      url: `/flightInfo/beforeflight`, //接口,url要改
      method: 'GET',
      params,
    },
    {
      isTransformResponse: false,
    }
  );
}

export function getHang(params) {//查询行李接口
  return http.request({
    url: `/flightInfo/getHang?timestamp=${params}`,//接口
    method: 'GET'
    // params
  },
    {
      isTransformResponse: false,
    });
}

export function getDlyInfo() {//查询行李接口
  return http.request({
    url: `/flightInfo/getDlyInfo`,//接口
    method: 'GET'
    // params
  },
    {
      isTransformResponse: false,
    });
}
